package qc.module.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qc.module.platform.entity.QcUserPasswordLogs;
import qc.module.platform.repository.QcUserPasswordLogsRepository;

/**
 * QcUserPasswordLogService
 *
 * @author QuCheng Tech
 * @since 2023/12/28
 */
@Service
public class QcUserPasswordLogService {
    private QcUserPasswordLogsRepository repository;

    @Autowired
    public void setQcUserPasswordLogsRepository(QcUserPasswordLogsRepository repository) {
        this.repository = repository;
    }

    /**
     * 添加密码日志记录
     *
     * @param log 登录日志
     * @return java.lang.String
     * @author QuCheng Tech
     * @date 2023/12/28
     */
    public void addLog(QcUserPasswordLogs log) {
        repository.insert(log);
    }

}
